sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/Peripheral/inc)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/drivers)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR})
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/Core)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/Debug)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/components/drivers/include)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/components/drivers/include/drivers)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/components/drivers/include/ipc)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/components/finsh)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/include)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/include/libc)
sdk_append_inc(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/libcpu/risc-v/common)

sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/Peripheral/src/*.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/Debug/*.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/Core/*.c)

if(${DEMO_TYPE} STREQUAL "host")
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/drivers/*.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/board.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/components/drivers/misc/pin.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/components/drivers/serial/serial.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/components/finsh/*.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/libcpu/risc-v/common/*.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/libcpu/risc-v/common/*.S)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/rtthread/src/*.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/ch32v30x_it.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/RTT/system_ch32v30x.c)
else()
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/ch32v30x_it.c)
sdk_append_source(${CMAKE_CURRENT_LIST_DIR}/system_ch32v30x.c)
endif()


